package negocio;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Hanoway
 */
public class ResultCalcDataBase 
{
    private double BRUTO;
    private double LIQUIDO;
    private double INITIAL_BRUTO;
    private double INITIAL_LIQUIDO;
    private double NEXT_BRUTO;
    private double NEXT_LIQUIDO;
    private List<ResultCalcTable> tables;
    
    public ResultCalcDataBase()
    {
        tables = new ArrayList<ResultCalcTable>();
    }

    public double getBRUTO() {
        return BRUTO;
    }

    public double getLIQUIDO() {
        return LIQUIDO;
    }

    public double getINITIAL_BRUTO() {
        return INITIAL_BRUTO;
    }

    public double getINITIAL_LIQUIDO() {
        return INITIAL_LIQUIDO;
    }

    public double getNEXT_BRUTO() {
        return NEXT_BRUTO;
    }

    public double getNEXT_LIQUIDO() {
        return NEXT_LIQUIDO;
    }

    public List<ResultCalcTable> getTables() 
    {
        return tables;
    }
    
    public boolean addTable(ResultCalcTable t)
    {
        BRUTO += t.getBRUTO();
        LIQUIDO += t.getLIQUIDO();
        INITIAL_BRUTO += t.getINITIAL_BRUTO();
        INITIAL_LIQUIDO += t.getINITIAL_LIQUIDO();
        NEXT_BRUTO += t.getNEXT_BRUTO();
        NEXT_LIQUIDO += t.getNEXT_LIQUIDO();
        return tables.add(t);
    }
}
